var userBalance = {};
userBalance.menthods = {};

$(function(){

    //收支明细切换
    userBalance.menthods.balanceTab();

    // 分页
    var page = new Controller.PageControl();
    page.init({
        totalCount: 100, //总页数
        conter: ".shop-page", //容器选择器
        nowPage: 1 //当前页，默认第几页
        // callback:fun,      
        // gotoCallBack:fun   
    });
})

//收支明细切换
userBalance.menthods.balanceTab = function(){
    userBalance.menthods.shopBalance = "1";
    $(".shop-balance-bot-title li").on("click",function(){
        $(".shop-balance-bot-con-list").hide();
        $(this).addClass("shop-color").siblings().removeClass("shop-color");
        userBalance.menthods.shopBalance = $(this).attr("shop-balance");
        console.log( userBalance.menthods.shopBalance);
        $(".shop-balance-bot-con-list[shop-balance = "+ userBalance.menthods.shopBalance +"]").show();
    })
}